package com.act.service.impl;

import com.act.dao.IExpressDao;
import com.act.domain.Express;
import com.act.service.api.IExpressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ExpressServiceImpl implements IExpressService{

	@Resource
	private IExpressDao expressDao;
	
	@Override
	public void add(Express express) {
		expressDao.add(express);
	}

	@Override
	public void update(Express express) {
		expressDao.update(express);
	}

	@Override
	public void delete(int id) {
		expressDao.delete(id);
	}

	@Override
	public List<Express> getAll() {
		return expressDao.getAll();
	}

}
